package com.memory.modules.business.service.sell;

import com.memory.modules.business.domain.sell.Sell;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.math.BigDecimal;
import java.util.List;
import java.util.Optional;

public interface SellService {


    Sell create(Sell sell);

    Sell update(Long id, Sell sell);

    void remove(Long id);

    Optional<Sell> findById(Long id);

    Page<Sell> findList(Example<Sell> example);

    List<Sell> findListNoPage(Example<Sell> example);

    List<Sell> findByAccountId(Long accountId);
}
